package com.jiangyg.mall.member.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：会员等级
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-30 07:33:09
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class MemberLevelDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private String id;

	/**
	 * 等级名称
	 */
	@NotNull
	@Length(min = 2, max = 50)
	private String name;

	/**
	 * 等级需要的成长值
	 */
	@NotNull
	private Integer growthPoint;

	/**
	 * 是否为默认等级[0->不是；1->是]
	 */
	@NotNull
	private Integer defaultStatus;

	/**
	 * 免运费标准
	 */
	@NotNull
	private BigDecimal freeFreightPoint;

	/**
	 * 每次评价获取的成长值
	 */
	@NotNull
	private Integer commentGrowthPoint;

	/**
	 * 是否有免邮特权
	 */
	@NotNull
	private Integer priviledgeFreeFreight;

	/**
	 * 是否有会员价格特权
	 */
	@NotNull
	private Integer priviledgeMemberPrice;

	/**
	 * 是否有生日特权
	 */
	@NotNull
	private Integer priviledgeBirthday;

	/**
	 * 备注
	 */
	private String desct;

}
